<ExtensionModel>
	
	<Runtime>
		<Import assembly="Mono.TextTemplating.dll" />
	</Runtime>

	<Extension path = "/MonoDevelop/Core/MimeTypes">
		<MimeType id="application/t4-template" _description="Text template" icon="md-template" isText="true">
			<File pattern="*.tt" />
		</MimeType>
	</Extension>

	<Extension path = "/MonoDevelop/Ide/FileFilters">
		<FileFilter id = "T4Templates"
		           _label = "T4 Templates"
		           extensions = "*.tt" />
	</Extension>

	<Extension path = "/MonoDevelop/TypeSystem/Parser">
		<Parser class = "MonoDevelop.TextTemplating.Parser.T4Parser" mimeType="application/t4-template" />
	</Extension>

	<Extension path = "/MonoDevelop/Ide/TextEditorExtensions">
		<Class fileExtensions = ".tt" class = "MonoDevelop.TextTemplating.Gui.T4EditorExtension" />
	</Extension>

	<Extension path = "/MonoDevelop/Ide/FileTemplates">
		<FileTemplate id       = "T4TemplateCSharp"
		              file     = "Templates/T4TemplateCSharp.xft.xml"/>
		<FileTemplate id       = "T4PreprocessedTemplateCSharp"
		              file     = "Templates/T4PreprocessedTemplateCSharp.xft.xml"/>
	</Extension>

	<Extension path = "/MonoDevelop/Ide/CustomTools">
		<Tool name="TextTemplatingFileGenerator" type="MonoDevelop.TextTemplating.TextTemplatingFileGenerator" extensions=".tt" />
		<Tool name="TextTemplatingFilePreprocessor" type="MonoDevelop.TextTemplating.TextTemplatingFilePreprocessor" extensions=".tt" />
	</Extension>

	<Extension path = "/MonoDevelop/Ide/Commands">
		<Command id = "MonoDevelop.TextTemplating.Commands.Generate"
			_label = "Process T4 Templates..."
			_description = "Process all T4 templates."
			defaultHandler = "MonoDevelop.TextTemplating.GenerateCommandHandler"
			/>
	</Extension>

	<Extension path = "/MonoDevelop/Ide/ContextMenu/ProjectPad/Tools">
		<Condition id="ItemType" value="Solution|Project|ProjectFile">
			<CommandItem id = "MonoDevelop.TextTemplating.Commands.Generate" />
		</Condition>
	</Extension>

	<Extension path = "/MonoDevelop/Ide/FileTemplateTypes">
		<FileTemplateType name = "T4File" class = "MonoDevelop.TextTemplating.T4FileTemplate" />
	</Extension>
</ExtensionModel>
